package com.lln.cjcx.pojo;

import com.lln.cjcx.util.CommonUtils;

/**
 * @author LiLinnan
 * @version 1.0
 * @date 2020/1/28 17:09
 */

public final class Term extends yfdc.JavaBean implements java.io.Serializable {
	private String termName;
	private String termId;

	public Term(String termId, String termName) {
		this.termId = termId;
		this.termName = termName;
	}

	public Term(String termId) {
		this.termId = termId;
		this.termName = CommonUtils.termName(termId);
	}

	public String getTermName() {
		return termName;
	}

	public void setTermName(String termName) {
		this.termName = termName;
	}

	public String getTermId() {
		return termId;
	}

	public void setTermId(String termId) {
		this.termId = termId;
	}

	@Override
	public String toString() {
		try {
			return yfdc.JavaBean.toString(this);
		} catch (Throwable ex) {
			ex.printStackTrace(System.out);
			return "Term{" +
					"termName='" + termName + '\'' +
					", termId='" + termId + '\'' +
					'}';
		}
	}
}
